﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MyImaginaryFriends_Redux.Screens
{
    class InGamePause
    {
        #region Variables

        Texture2D t2d_Background;
        SpriteFont sf_PauseMenuFont;

        State PauseMenuState;

        #endregion

        public InGamePause()
        {
            //construct and init.
            PauseMenuState = State.Hidden;
        }

        public void LoadContent(ContentManager content)
        {
            t2d_Background = content.Load<Texture2D>("GameplayScreenContent//InPauseMenuContent//InGamePause");
            sf_PauseMenuFont = content.Load<SpriteFont>("GameplayScreenContent//InPauseMenuContent//PauseMenuFont");
        }

        public void Update(GameTime gameTime, InputHandler input, GameplayScreen screen, GamePlayScreen_Classes.PlayerEntity player)
        {

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            if (PauseMenuState == State.Active)
            {
                spriteBatch.Draw(t2d_Background, new Vector2(spriteBatch.GraphicsDevice.Viewport.X, spriteBatch.GraphicsDevice.Viewport.Y), Color.White * 0.5f);

                spriteBatch.DrawString(sf_PauseMenuFont, "State: " + PauseMenuState.ToString(), new Vector2(100, 100), Color.White);
            }

        }

    }
}
